package com.medical_backend.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

@TableName("medical_card")
public class MedicalCard {
    private Long id;
    private String cardId;
    private String insuredName;
    private String medicalName;
    private LocalDate startTime;
    private LocalDate endTime;

    public MedicalCard() {
    }

    public MedicalCard(Long id, String cardId, String insuredName, String medicalName, LocalDate startTime, LocalDate endTime) {
        this.id = id;
        this.cardId = cardId;
        this.insuredName = insuredName;
        this.medicalName = medicalName;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getInsuredName() {
        return insuredName;
    }

    public void setInsuredName(String insuredName) {
        this.insuredName = insuredName;
    }

    public String getMedicalName() {
        return medicalName;
    }

    public void setMedicalName(String medicalName) {
        this.medicalName = medicalName;
    }

    public LocalDate getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDate startTime) {
        this.startTime = startTime;
    }

    public LocalDate getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDate endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "MedicalCard{" +
                "id=" + id +
                ", cardId='" + cardId + '\'' +
                ", insuredName='" + insuredName + '\'' +
                ", medicalName='" + medicalName + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                '}';
    }
}
